/**
 * 
 */
package net.sf.cldsql.dj.container;

import java.util.Enumeration;
import java.util.Hashtable;

import net.sf.cldsql.dj.container.base.DiBaseSession;

/**
 * DiTestSession
 */
public class DiTestSession implements DiBaseSession {
        private Hashtable<String, Object> map = new Hashtable<String, Object>();

        public Object getAttribute(String name) {
            return map.get(name);
        }

        public Enumeration getAttributeNames() {
            return map.keys();
        }

        public void invalidate() {
            map = null;
        }

        public boolean isNew() {
            return false;
        }

        public void removeAttribute(String name) {
            map.remove(name);
        }

        public void setAttribute(String name, Object value) {
            map.put(name, value);
        }
}
